package com.helper.email;

import lombok.Data;

/**
 * Email host
 *
 * @description:
 * @author: cyj
 * @date 2022 -01-08 16:05:55
 *
 *
 */
public enum EmailHost {

    /**
     * Aliyun imap email host
     */
    ALIYUN_IMAP("imap.aliyun.com", 993),
    /**
     * Aliyun smtp email host
     */
    ALIYUN_SMTP("smtp.aliyun.com", 465),
    /**
     * Aliyun pop 3 email host
     */
    ALIYUN_POP3("pop3.aliyun.com", 995),

    /**
     * Wangyi imap email host
     */
    WANGYI_IMAP("imap.163.com", 993),
    /**
     * Wangyi smtp email host
     */
    WANGYI_SMTP("smtp.163.com", 465),
    /**
     * Wangyi pop 3 email host
     */
    WANGYI_POP3("pop.163.com", 995),

    /**
     * Qq imap email host
     */
    QQ_IMAP("imap.qq.com", 993),
    /**
     * Qq smtp email host
     */
    QQ_SMTP("smtp.qq.com", 465),
    /**
     * Qq pop 3 email host
     */
    QQ_POP3("pop.qq.com", 995)

    ;
    /**
     * Host name
     */
    public String hostName;

    /**
     * Sms port
     */
    public int smsPort;

    /**
     * Email host
     *
     * @param hostName host name
     * @param smsPort  sms port
     */
    EmailHost(String hostName, int smsPort) {
        this.hostName = hostName;
        this.smsPort = smsPort;
    }
}
